﻿using ConfExpert.Datasets;
using DevExpress.XtraReports.UI;
using DevTeam;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
 
public class xrKesimTexcomm : DevExpress.XtraReports.UI.XtraReport
{
    #region Designer generated code

    #region Members
    private DevExpress.XtraReports.UI.DetailBand Detail;
    private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
    private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin;
    private MyData oMyData;
    private ReportFooterBand ReportFooter;
    private ReportHeaderBand ReportHeader;
    private XRPictureBox xrPictureBox1;
    private XRLabel x1;
    private DetailBand HeaderBand;
    private DetailReportBand Header;
    private DetailReportBand DetailReport;
    private DetailBand DetailBand;
    private XRTable xtM;
    private XRTableRow xrTableRow1;
    private XRTableCell x4;
    private XRTableCell xrTableCell2;
    private XRTableRow xrTableRow7;
    private XRTableCell x35;
    private XRTableCell xModelNo;
    private XRTableRow xrTableRow6;
    private XRTableCell x6;
    private XRTableCell xrTableCell5;
    private XRTable xrTable3;
    private XRTableRow xrTableRow3;
    private XRTableCell x2;
    private XRTableCell x2a;
    private XRTableRow xrTableRow5;
    private XRTableCell x3;
    private XRTableCell x3a;
    private XRControlStyle xrControlStyle1;
    private XRTable xtGarni;
    private XRTableRow xrTableRow33;
    private XRTableCell xrTableCell37;
    private XRTable xtBD;
    private XRTableRow xrTableRow41;
    private XRTableCell xrTableCell206;
    private PageFooterBand PageFooter;
    private XRPageInfo xrPageInfo1;
    private GroupFooterBand GroupFooter1;
    private XRPageBreak xrPageBreak2;
    private XRTable xrTable4;
    private XRTableRow xrTableRow15;
    private XRTableCell xrTableCell27; 
    #endregion
    private XRLabel x32;
    private XRLabel x31;
    private XRTableRow xrTableRow20;
    private XRTableCell x36;
    private XRTableCell x4a;
    private XRTableRow xrTableRow21;
    private XRTableCell xrTableCell1;
    private XRTableCell xrTableCell3;
    private XRTable tbModelDetay;
    private XRTableRow xrTableRow16;
    private XRTableCell trModelDetay;
    private XRTable tbDetay4;
    private XRTableRow xrTableRow24;
    private XRTableCell xrTableCell32;
    private XRTable tbDetay3;
    private XRTableRow xrTableRow23;
    private XRTableCell xrTableCell31;
    private XRTable tbDetay2;
    private XRTableRow xrTableRow22;
    private XRTableCell xrTableCell25;
    private XRTable tbDetay1;
    private XRTableRow xrTableRow19;
    private XRTableCell xrTableCell24;
    private XRTableRow xrTableRow2;
    private XRTableCell xrTableCell4;
    private XRTableCell tcTermin;
    private XRLine xrLine1;
    private XRTable tblDetayBaslik;
    private XRTableRow xrTableRow40;
    private XRTableCell xrTableCell52;
    private XRTable xrTable2;
    private XRTableRow xrTableRow11;
    private XRTableCell tcDosyaNo;

    private System.ComponentModel.IContainer components = null;

    private void InitializeComponent()
    {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(xrKesimTexcomm));
            this.Detail = new DevExpress.XtraReports.UI.DetailBand();
            this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
            this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
            this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand();
            this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
            this.xrControlStyle1 = new DevExpress.XtraReports.UI.XRControlStyle();
            this.PageFooter = new DevExpress.XtraReports.UI.PageFooterBand();
            this.xrTable2 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow11 = new DevExpress.XtraReports.UI.XRTableRow();
            this.tcDosyaNo = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo();
            this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
            this.DetailBand = new DevExpress.XtraReports.UI.DetailBand();
            this.tbDetay4 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow24 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell32 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay3 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow23 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell31 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay2 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow22 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay1 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow19 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell24 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x32 = new DevExpress.XtraReports.UI.XRLabel();
            this.tblDetayBaslik = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow40 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell52 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xtGarni = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow33 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell37 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xtBD = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow41 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell206 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrLine1 = new DevExpress.XtraReports.UI.XRLine();
            this.x31 = new DevExpress.XtraReports.UI.XRLabel();
            this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
            this.xrPageBreak2 = new DevExpress.XtraReports.UI.XRPageBreak();
            this.oMyData = new ConfExpert.Datasets.MyData();
            this.Header = new DevExpress.XtraReports.UI.DetailReportBand();
            this.HeaderBand = new DevExpress.XtraReports.UI.DetailBand();
            this.tbModelDetay = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow16 = new DevExpress.XtraReports.UI.XRTableRow();
            this.trModelDetay = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTable4 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow15 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell27 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xtM = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x4 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x35 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xModelNo = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow21 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x6 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x2 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x2a = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x3 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x3a = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow20 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x36 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x4a = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tcTermin = new DevExpress.XtraReports.UI.XRTableCell();
            this.x1 = new DevExpress.XtraReports.UI.XRLabel();
            this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tblDetayBaslik)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtGarni)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtBD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.oMyData)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbModelDetay)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtM)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // Detail
            // 
            this.Detail.Dpi = 254F;
            this.Detail.Expanded = false;
            this.Detail.HeightF = 0F;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // TopMargin
            // 
            this.TopMargin.Dpi = 254F;
            this.TopMargin.HeightF = 84F;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // BottomMargin
            // 
            this.BottomMargin.Dpi = 254F;
            this.BottomMargin.HeightF = 30F;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // ReportFooter
            // 
            this.ReportFooter.Dpi = 254F;
            this.ReportFooter.Expanded = false;
            this.ReportFooter.HeightF = 0F;
            this.ReportFooter.Name = "ReportFooter";
            // 
            // ReportHeader
            // 
            this.ReportHeader.Dpi = 254F;
            this.ReportHeader.HeightF = 0F;
            this.ReportHeader.Name = "ReportHeader";
            // 
            // xrControlStyle1
            // 
            this.xrControlStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
            this.xrControlStyle1.Name = "xrControlStyle1";
            this.xrControlStyle1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            // 
            // PageFooter
            // 
            this.PageFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xrTable2,
            this.xrPageInfo1});
            this.PageFooter.Dpi = 254F;
            this.PageFooter.HeightF = 63.5F;
            this.PageFooter.Name = "PageFooter";
            // 
            // xrTable2
            // 
            this.xrTable2.Dpi = 254F;
            this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(2562.583F, 0F);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow11});
            this.xrTable2.SizeF = new System.Drawing.SizeF(203F, 58.42F);
            // 
            // xrTableRow11
            // 
            this.xrTableRow11.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.tcDosyaNo});
            this.xrTableRow11.Dpi = 254F;
            this.xrTableRow11.Name = "xrTableRow11";
            this.xrTableRow11.Weight = 1D;
            // 
            // tcDosyaNo
            // 
            this.tcDosyaNo.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.DosyaNo")});
            this.tcDosyaNo.Dpi = 254F;
            this.tcDosyaNo.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.tcDosyaNo.ForeColor = System.Drawing.Color.Red;
            this.tcDosyaNo.Name = "tcDosyaNo";
            this.tcDosyaNo.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 254F);
            this.tcDosyaNo.StylePriority.UseFont = false;
            this.tcDosyaNo.StylePriority.UseForeColor = false;
            this.tcDosyaNo.StylePriority.UsePadding = false;
            this.tcDosyaNo.StylePriority.UseTextAlignment = false;
            this.tcDosyaNo.Text = "tcDosyaNo";
            this.tcDosyaNo.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.tcDosyaNo.Weight = 2.7731703981883249D;
            // 
            // xrPageInfo1
            // 
            this.xrPageInfo1.Dpi = 254F;
            this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(2765.583F, 0F);
            this.xrPageInfo1.Name = "xrPageInfo1";
            this.xrPageInfo1.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.xrPageInfo1.RunningBand = this.DetailReport;
            this.xrPageInfo1.SizeF = new System.Drawing.SizeF(119F, 58.42F);
            this.xrPageInfo1.StylePriority.UseTextAlignment = false;
            this.xrPageInfo1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            // 
            // DetailReport
            // 
            this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.DetailBand,
            this.GroupFooter1});
            this.DetailReport.DataMember = "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello";
            this.DetailReport.DataSource = this.oMyData;
            this.DetailReport.Dpi = 254F;
            this.DetailReport.Level = 0;
            this.DetailReport.Name = "DetailReport";
            // 
            // DetailBand
            // 
            this.DetailBand.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.tbDetay4,
            this.tbDetay3,
            this.tbDetay2,
            this.tbDetay1,
            this.x32,
            this.tblDetayBaslik,
            this.xtGarni,
            this.xtBD,
            this.xrLine1,
            this.x31});
            this.DetailBand.Dpi = 254F;
            this.DetailBand.HeightF = 277.8735F;
            this.DetailBand.KeepTogether = true;
            this.DetailBand.MultiColumn.ColumnCount = 2;
            this.DetailBand.Name = "DetailBand";
            // 
            // tbDetay4
            // 
            this.tbDetay4.Dpi = 254F;
            this.tbDetay4.LocationFloat = new DevExpress.Utils.PointFloat(2149.75F, 24.99993F);
            this.tbDetay4.Name = "tbDetay4";
            this.tbDetay4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow24});
            this.tbDetay4.SizeF = new System.Drawing.SizeF(706F, 63.5F);
            // 
            // xrTableRow24
            // 
            this.xrTableRow24.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell32});
            this.xrTableRow24.Dpi = 254F;
            this.xrTableRow24.Name = "xrTableRow24";
            this.xrTableRow24.Weight = 1D;
            // 
            // xrTableCell32
            // 
            this.xrTableCell32.Dpi = 254F;
            this.xrTableCell32.Name = "xrTableCell32";
            this.xrTableCell32.Weight = 3D;
            // 
            // tbDetay3
            // 
            this.tbDetay3.Dpi = 254F;
            this.tbDetay3.LocationFloat = new DevExpress.Utils.PointFloat(1443.75F, 24.99993F);
            this.tbDetay3.Name = "tbDetay3";
            this.tbDetay3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow23});
            this.tbDetay3.SizeF = new System.Drawing.SizeF(706F, 63.5F);
            // 
            // xrTableRow23
            // 
            this.xrTableRow23.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell31});
            this.xrTableRow23.Dpi = 254F;
            this.xrTableRow23.Name = "xrTableRow23";
            this.xrTableRow23.Weight = 1D;
            // 
            // xrTableCell31
            // 
            this.xrTableCell31.Dpi = 254F;
            this.xrTableCell31.Name = "xrTableCell31";
            this.xrTableCell31.Weight = 3D;
            // 
            // tbDetay2
            // 
            this.tbDetay2.Dpi = 254F;
            this.tbDetay2.LocationFloat = new DevExpress.Utils.PointFloat(737.75F, 24.99993F);
            this.tbDetay2.Name = "tbDetay2";
            this.tbDetay2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow22});
            this.tbDetay2.SizeF = new System.Drawing.SizeF(706F, 63.5F);
            // 
            // xrTableRow22
            // 
            this.xrTableRow22.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell25});
            this.xrTableRow22.Dpi = 254F;
            this.xrTableRow22.Name = "xrTableRow22";
            this.xrTableRow22.Weight = 1D;
            // 
            // xrTableCell25
            // 
            this.xrTableCell25.Dpi = 254F;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Weight = 3D;
            // 
            // tbDetay1
            // 
            this.tbDetay1.Dpi = 254F;
            this.tbDetay1.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 24.99993F);
            this.tbDetay1.Name = "tbDetay1";
            this.tbDetay1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow19});
            this.tbDetay1.SizeF = new System.Drawing.SizeF(706F, 63.5F);
            // 
            // xrTableRow19
            // 
            this.xrTableRow19.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell24});
            this.xrTableRow19.Dpi = 254F;
            this.xrTableRow19.Name = "xrTableRow19";
            this.xrTableRow19.Weight = 1D;
            // 
            // xrTableCell24
            // 
            this.xrTableCell24.Dpi = 254F;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.Weight = 3D;
            // 
            // x32
            // 
            this.x32.Dpi = 254F;
            this.x32.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x32.LocationFloat = new DevExpress.Utils.PointFloat(1163.436F, 117.0066F);
            this.x32.Name = "x32";
            this.x32.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.x32.SizeF = new System.Drawing.SizeF(309.245F, 50F);
            this.x32.StylePriority.UseFont = false;
            this.x32.StylePriority.UseTextAlignment = false;
            this.x32.Text = "Beden Dağılımı";
            this.x32.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
            // 
            // tblDetayBaslik
            // 
            this.tblDetayBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) 
            | DevExpress.XtraPrinting.BorderSide.Right) 
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tblDetayBaslik.Dpi = 254F;
            this.tblDetayBaslik.KeepTogether = true;
            this.tblDetayBaslik.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 14.27787F);
            this.tblDetayBaslik.Name = "tblDetayBaslik";
            this.tblDetayBaslik.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow40});
            this.tblDetayBaslik.SizeF = new System.Drawing.SizeF(2824F, 5F);
            this.tblDetayBaslik.StylePriority.UseBorders = false;
            // 
            // xrTableRow40
            // 
            this.xrTableRow40.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableRow40.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell52});
            this.xrTableRow40.Dpi = 254F;
            this.xrTableRow40.Name = "xrTableRow40";
            this.xrTableRow40.StylePriority.UseBorders = false;
            this.xrTableRow40.Weight = 0.69067561547063172D;
            // 
            // xrTableCell52
            // 
            this.xrTableCell52.Dpi = 254F;
            this.xrTableCell52.Name = "xrTableCell52";
            this.xrTableCell52.Weight = 3D;
            // 
            // xtGarni
            // 
            this.xtGarni.Dpi = 254F;
            this.xtGarni.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 177.3319F);
            this.xtGarni.Name = "xtGarni";
            this.xtGarni.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow33});
            this.xtGarni.SizeF = new System.Drawing.SizeF(500F, 63.5F);
            // 
            // xrTableRow33
            // 
            this.xrTableRow33.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell37});
            this.xrTableRow33.Dpi = 254F;
            this.xrTableRow33.Name = "xrTableRow33";
            this.xrTableRow33.Weight = 1D;
            // 
            // xrTableCell37
            // 
            this.xrTableCell37.Dpi = 254F;
            this.xrTableCell37.Name = "xrTableCell37";
            this.xrTableCell37.Weight = 3D;
            // 
            // xtBD
            // 
            this.xtBD.Dpi = 254F;
            this.xtBD.LocationFloat = new DevExpress.Utils.PointFloat(1163.436F, 177.3316F);
            this.xtBD.Name = "xtBD";
            this.xtBD.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow41});
            this.xtBD.SizeF = new System.Drawing.SizeF(762F, 63.5F);
            // 
            // xrTableRow41
            // 
            this.xrTableRow41.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell206});
            this.xrTableRow41.Dpi = 254F;
            this.xrTableRow41.Name = "xrTableRow41";
            this.xrTableRow41.Weight = 1D;
            // 
            // xrTableCell206
            // 
            this.xrTableCell206.Dpi = 254F;
            this.xrTableCell206.Name = "xrTableCell206";
            this.xrTableCell206.Weight = 3D;
            // 
            // xrLine1
            // 
            this.xrLine1.BorderColor = System.Drawing.Color.DarkGray;
            this.xrLine1.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Solid;
            this.xrLine1.Borders = DevExpress.XtraPrinting.BorderSide.Top;
            this.xrLine1.BorderWidth = 2F;
            this.xrLine1.Dpi = 254F;
            this.xrLine1.ForeColor = System.Drawing.Color.Transparent;
            this.xrLine1.LineWidth = 0;
            this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 0F);
            this.xrLine1.Name = "xrLine1";
            this.xrLine1.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 254F);
            this.xrLine1.SizeF = new System.Drawing.SizeF(2823.848F, 14.27795F);
            this.xrLine1.StylePriority.UseBorderColor = false;
            this.xrLine1.StylePriority.UseBorderDashStyle = false;
            this.xrLine1.StylePriority.UseBorders = false;
            this.xrLine1.StylePriority.UseBorderWidth = false;
            this.xrLine1.StylePriority.UseForeColor = false;
            this.xrLine1.StylePriority.UsePadding = false;
            // 
            // x31
            // 
            this.x31.Dpi = 254F;
            this.x31.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x31.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 117.0066F);
            this.x31.Name = "x31";
            this.x31.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.x31.SizeF = new System.Drawing.SizeF(309.245F, 50F);
            this.x31.StylePriority.UseFont = false;
            this.x31.StylePriority.UseTextAlignment = false;
            this.x31.Text = "Kullanılan Kumaşlar";
            this.x31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
            // 
            // GroupFooter1
            // 
            this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xrPageBreak2});
            this.GroupFooter1.Dpi = 254F;
            this.GroupFooter1.HeightF = 5.291667F;
            this.GroupFooter1.Name = "GroupFooter1";
            // 
            // xrPageBreak2
            // 
            this.xrPageBreak2.Dpi = 254F;
            this.xrPageBreak2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
            this.xrPageBreak2.Name = "xrPageBreak2";
            // 
            // oMyData
            // 
            this.oMyData.DataSetName = "MyData";
            this.oMyData.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // Header
            // 
            this.Header.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.HeaderBand,
            this.DetailReport});
            this.Header.DataMember = "xTexcommFoyHeader";
            this.Header.DataSource = this.oMyData;
            this.Header.Dpi = 254F;
            this.Header.Level = 0;
            this.Header.Name = "Header";
            // 
            // HeaderBand
            // 
            this.HeaderBand.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.tbModelDetay,
            this.xrTable4,
            this.xrTable3,
            this.x1,
            this.xrPictureBox1});
            this.HeaderBand.Dpi = 254F;
            this.HeaderBand.HeightF = 730.6666F;
            this.HeaderBand.MultiColumn.ColumnCount = 2;
            this.HeaderBand.Name = "HeaderBand";
            this.HeaderBand.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.HeaderBand_BeforePrint);
            // 
            // tbModelDetay
            // 
            this.tbModelDetay.Dpi = 254F;
            this.tbModelDetay.LocationFloat = new DevExpress.Utils.PointFloat(977.7916F, 221.0625F);
            this.tbModelDetay.Name = "tbModelDetay";
            this.tbModelDetay.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow16});
            this.tbModelDetay.SizeF = new System.Drawing.SizeF(1700F, 63.5F);
            // 
            // xrTableRow16
            // 
            this.xrTableRow16.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.trModelDetay});
            this.xrTableRow16.Dpi = 254F;
            this.xrTableRow16.Name = "xrTableRow16";
            this.xrTableRow16.Weight = 1D;
            // 
            // trModelDetay
            // 
            this.trModelDetay.Dpi = 254F;
            this.trModelDetay.Name = "trModelDetay";
            this.trModelDetay.Weight = 3D;
            // 
            // xrTable4
            // 
            this.xrTable4.Dpi = 254F;
            this.xrTable4.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 221.0625F);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow15});
            this.xrTable4.SizeF = new System.Drawing.SizeF(863.7443F, 276.4366F);
            // 
            // xrTableRow15
            // 
            this.xrTableRow15.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell27});
            this.xrTableRow15.Dpi = 254F;
            this.xrTableRow15.Name = "xrTableRow15";
            this.xrTableRow15.Weight = 0.414001169632154D;
            // 
            // xrTableCell27
            // 
            this.xrTableCell27.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xtM});
            this.xrTableCell27.Dpi = 254F;
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Text = "xrTableCell27";
            this.xrTableCell27.Weight = 3D;
            // 
            // xtM
            // 
            this.xtM.BorderColor = System.Drawing.Color.DimGray;
            this.xtM.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) 
            | DevExpress.XtraPrinting.BorderSide.Right) 
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.xtM.Dpi = 254F;
            this.xtM.Font = new System.Drawing.Font("Calibri", 14F);
            this.xtM.KeepTogether = true;
            this.xtM.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
            this.xtM.Name = "xtM";
            this.xtM.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 3, 3, 254F);
            this.xtM.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow1,
            this.xrTableRow7,
            this.xrTableRow21,
            this.xrTableRow6});
            this.xtM.SizeF = new System.Drawing.SizeF(822.8538F, 254F);
            this.xtM.StylePriority.UseBorderColor = false;
            this.xtM.StylePriority.UseBorders = false;
            this.xtM.StylePriority.UseFont = false;
            this.xtM.StylePriority.UsePadding = false;
            // 
            // xrTableRow1
            // 
            this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x4,
            this.xrTableCell2});
            this.xrTableRow1.Dpi = 254F;
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1D;
            // 
            // x4
            // 
            this.x4.BackColor = System.Drawing.Color.LightGray;
            this.x4.Dpi = 254F;
            this.x4.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x4.Name = "x4";
            this.x4.StylePriority.UseBackColor = false;
            this.x4.StylePriority.UseFont = false;
            this.x4.StylePriority.UseTextAlignment = false;
            this.x4.Text = "Müşteri";
            this.x4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x4.Weight = 0.93470629716554454D;
            // 
            // xrTableCell2
            // 
            this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.Customer")});
            this.xrTableCell2.Dpi = 254F;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 3, 3, 3, 254F);
            this.xrTableCell2.StylePriority.UsePadding = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "xrTableCell2";
            this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xrTableCell2.Weight = 2.0652937028344556D;
            // 
            // xrTableRow7
            // 
            this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x35,
            this.xModelNo});
            this.xrTableRow7.Dpi = 254F;
            this.xrTableRow7.Name = "xrTableRow7";
            this.xrTableRow7.Weight = 1D;
            // 
            // x35
            // 
            this.x35.BackColor = System.Drawing.Color.LightGray;
            this.x35.Dpi = 254F;
            this.x35.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x35.Name = "x35";
            this.x35.StylePriority.UseBackColor = false;
            this.x35.StylePriority.UseFont = false;
            this.x35.StylePriority.UseTextAlignment = false;
            this.x35.Text = "Model No.";
            this.x35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x35.Weight = 0.93470629716554454D;
            // 
            // xModelNo
            // 
            this.xModelNo.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.Modello")});
            this.xModelNo.Dpi = 254F;
            this.xModelNo.Font = new System.Drawing.Font("Calibri", 14F, System.Drawing.FontStyle.Bold);
            this.xModelNo.Name = "xModelNo";
            this.xModelNo.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 3, 3, 3, 254F);
            this.xModelNo.StylePriority.UseFont = false;
            this.xModelNo.StylePriority.UsePadding = false;
            this.xModelNo.StylePriority.UseTextAlignment = false;
            this.xModelNo.Text = "xModelNo";
            this.xModelNo.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xModelNo.Weight = 2.0652937028344556D;
            // 
            // xrTableRow21
            // 
            this.xrTableRow21.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell1,
            this.xrTableCell3});
            this.xrTableRow21.Dpi = 254F;
            this.xrTableRow21.Name = "xrTableRow21";
            this.xrTableRow21.Weight = 1D;
            // 
            // xrTableCell1
            // 
            this.xrTableCell1.BackColor = System.Drawing.Color.LightGray;
            this.xrTableCell1.Dpi = 254F;
            this.xrTableCell1.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseBackColor = false;
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "Yaka";
            this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xrTableCell1.Weight = 0.93470629716554454D;
            // 
            // xrTableCell3
            // 
            this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.Collo")});
            this.xrTableCell3.Dpi = 254F;
            this.xrTableCell3.Font = new System.Drawing.Font("Calibri", 14F);
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.StylePriority.UseFont = false;
            this.xrTableCell3.Text = "xrTableCell3";
            this.xrTableCell3.Weight = 2.0652937028344556D;
            // 
            // xrTableRow6
            // 
            this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x6,
            this.xrTableCell5});
            this.xrTableRow6.Dpi = 254F;
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Weight = 1D;
            // 
            // x6
            // 
            this.x6.BackColor = System.Drawing.Color.LightGray;
            this.x6.Dpi = 254F;
            this.x6.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x6.Name = "x6";
            this.x6.StylePriority.UseBackColor = false;
            this.x6.StylePriority.UseFont = false;
            this.x6.StylePriority.UseTextAlignment = false;
            this.x6.Text = "Toplam Adet";
            this.x6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x6.Weight = 0.93470629716554454D;
            // 
            // xrTableCell5
            // 
            this.xrTableCell5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.ToplamAdet")});
            this.xrTableCell5.Dpi = 254F;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 3, 3, 3, 254F);
            this.xrTableCell5.StylePriority.UsePadding = false;
            this.xrTableCell5.StylePriority.UseTextAlignment = false;
            this.xrTableCell5.Text = "xrTableCell5";
            this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xrTableCell5.Weight = 2.0652937028344556D;
            // 
            // xrTable3
            // 
            this.xrTable3.BorderColor = System.Drawing.Color.DimGray;
            this.xrTable3.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTable3.Dpi = 254F;
            this.xrTable3.KeepTogether = true;
            this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(2286F, 2.645833F);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 3, 10, 254F);
            this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow3,
            this.xrTableRow5,
            this.xrTableRow20,
            this.xrTableRow2});
            this.xrTable3.SizeF = new System.Drawing.SizeF(560.9163F, 201.0834F);
            this.xrTable3.StylePriority.UseBorderColor = false;
            this.xrTable3.StylePriority.UseBorders = false;
            this.xrTable3.StylePriority.UsePadding = false;
            // 
            // xrTableRow3
            // 
            this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x2,
            this.x2a});
            this.xrTableRow3.Dpi = 254F;
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.Weight = 1D;
            // 
            // x2
            // 
            this.x2.Dpi = 254F;
            this.x2.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x2.Name = "x2";
            this.x2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 9, 3, 3, 254F);
            this.x2.StylePriority.UseFont = false;
            this.x2.StylePriority.UsePadding = false;
            this.x2.StylePriority.UseTextAlignment = false;
            this.x2.Text = "Tarih";
            this.x2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x2.Weight = 1.1799995913085277D;
            // 
            // x2a
            // 
            this.x2a.Dpi = 254F;
            this.x2a.Name = "x2a";
            this.x2a.StylePriority.UseTextAlignment = false;
            this.x2a.Text = "26.07.2012";
            this.x2a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x2a.Weight = 2D;
            // 
            // xrTableRow5
            // 
            this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x3,
            this.x3a});
            this.xrTableRow5.Dpi = 254F;
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1D;
            // 
            // x3
            // 
            this.x3.Dpi = 254F;
            this.x3.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x3.Name = "x3";
            this.x3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 9, 3, 3, 254F);
            this.x3.StylePriority.UseFont = false;
            this.x3.StylePriority.UsePadding = false;
            this.x3.StylePriority.UseTextAlignment = false;
            this.x3.Text = "DosyaNo";
            this.x3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x3.Weight = 1.1799995913085277D;
            // 
            // x3a
            // 
            this.x3a.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.DosyaNo")});
            this.x3a.Dpi = 254F;
            this.x3a.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x3a.ForeColor = System.Drawing.Color.Red;
            this.x3a.Name = "x3a";
            this.x3a.StylePriority.UseFont = false;
            this.x3a.StylePriority.UseForeColor = false;
            this.x3a.StylePriority.UseTextAlignment = false;
            this.x3a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x3a.Weight = 2D;
            // 
            // xrTableRow20
            // 
            this.xrTableRow20.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x36,
            this.x4a});
            this.xrTableRow20.Dpi = 254F;
            this.xrTableRow20.Name = "xrTableRow20";
            this.xrTableRow20.Weight = 1D;
            // 
            // x36
            // 
            this.x36.Dpi = 254F;
            this.x36.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x36.Name = "x36";
            this.x36.StylePriority.UseFont = false;
            this.x36.StylePriority.UseTextAlignment = false;
            this.x36.Text = "Atölye ";
            this.x36.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x36.Weight = 1.1799995913085277D;
            // 
            // x4a
            // 
            this.x4a.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.Atelye")});
            this.x4a.Dpi = 254F;
            this.x4a.Name = "x4a";
            this.x4a.StylePriority.UseTextAlignment = false;
            this.x4a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x4a.Weight = 2D;
            // 
            // xrTableRow2
            // 
            this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell4,
            this.tcTermin});
            this.xrTableRow2.Dpi = 254F;
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1D;
            // 
            // xrTableCell4
            // 
            this.xrTableCell4.Dpi = 254F;
            this.xrTableCell4.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Termin Tarihi";
            this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.xrTableCell4.Weight = 1.1799995913085277D;
            // 
            // tcTermin
            // 
            this.tcTermin.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.TerminTarihi", "{0:d.M.yyyy}")});
            this.tcTermin.Dpi = 254F;
            this.tcTermin.Name = "tcTermin";
            this.tcTermin.Weight = 2D;
            // 
            // x1
            // 
            this.x1.Dpi = 254F;
            this.x1.Font = new System.Drawing.Font("Calibri", 26F, System.Drawing.FontStyle.Bold);
            this.x1.LocationFloat = new DevExpress.Utils.PointFloat(690.5625F, 0F);
            this.x1.Name = "x1";
            this.x1.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.x1.SizeF = new System.Drawing.SizeF(1510.242F, 103.1875F);
            this.x1.StylePriority.UseFont = false;
            this.x1.StylePriority.UseTextAlignment = false;
            this.x1.Text = "Kesim Föyü";
            this.x1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
            // 
            // xrPictureBox1
            // 
            this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Bookmark", null, "xKF_Header.ModelNo")});
            this.xrPictureBox1.Dpi = 254F;
            this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
            this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
            this.xrPictureBox1.Name = "xrPictureBox1";
            this.xrPictureBox1.SizeF = new System.Drawing.SizeF(493.1834F, 129.6458F);
            this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.StretchImage;
            // 
            // xrKesimTexcomm
            // 
            this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.Detail,
            this.TopMargin,
            this.BottomMargin,
            this.ReportFooter,
            this.ReportHeader,
            this.Header,
            this.PageFooter});
            this.Bookmark = "ModelNo";
            this.DataMember = "xTexcommFoyHeader";
            this.DataSource = this.oMyData;
            this.Dpi = 254F;
            this.Font = new System.Drawing.Font("Calibri", 9.75F);
            this.Margins = new System.Drawing.Printing.Margins(41, 41, 84, 30);
            this.PageHeight = 2100;
            this.PageWidth = 2970;
            this.PaperKind = System.Drawing.Printing.PaperKind.A4Rotated;
            this.ReportUnit = DevExpress.XtraReports.UI.ReportUnit.TenthsOfAMillimeter;
            this.SnapGridSize = 31.75F;
            this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] {
            this.xrControlStyle1});
            this.Version = "13.2";
            this.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.xrKesimTexcomm_BeforePrint);
            ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tblDetayBaslik)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtGarni)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtBD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.oMyData)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbModelDetay)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtM)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

    }

    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    } 
    #endregion

    public xrKesimTexcomm()
    {
        InitializeComponent();      
    }
 
    public xrKesimTexcomm(string _idx) :this()
    {
        idx = _idx;
    }

    public string idx;
    DataTable dtDetail = null;
    int BDWidth = 0;
    string[] colCaptions= "SİPARİŞ;KESİLEN;YÜKLENEN;SAĞLAM;DEFOLU;EKSİK".Split(';');

    void cell_BeforePrint(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;
        //int factor = 10;

        XRLabel label = (XRLabel)sender;

        float stringWidth = gr.MeasureString(label.Text, label.Font).Width;
        float labelWidth = label.WidthF;

        float newSize = 10.25f;
        /*
        if ( labelWidth < stringWidth * factor)
            newSize = label.Font.Size * label.Width / stringWidth / factor;
        else
            newSize = 10.5f;
        */
        label.Font = new Font(this.Font.FontFamily, newSize);
        gr.Dispose();
    }

    void cell_BeforePrint2(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;
        int factor = 10;

        XRLabel label = (XRLabel)sender;

        float stringWidth = gr.MeasureString(label.Text, label.Font).Width;
        float labelWidth = label.WidthF;

        float newSize = 10.25f;

        if ( labelWidth < stringWidth * factor)
            newSize = label.Font.Size * label.Width / stringWidth / factor;
        else
            newSize = 10.25f;

        label.Font = new Font(this.Font.FontFamily, newSize);
        gr.Dispose();
    }

    DataTable dagilim;
    private void xrKesimTexcomm_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        x2a.Text = DateTime.Now.ToShortDateString();
        this.PaperKind = PaperKind.A4;
        this.Landscape = true;
        DataSet ds = Session.DataManager.ExecuteDataSet("GetTexcommFoy",idx);

        oMyData.Clear();
        oMyData.EnforceConstraints = false;

        //oMyData.xTexcommFoyHeader.Merge(ds.Tables[0]);
        //oMyData.xTexcommFoyDetail.Merge(ds.Tables[1]);
        dagilim = new DataTable();
        dagilim.Merge(ds.Tables[2]);
   

        //oMyData.xTexcommFoyDetail.Columns.Add("Top0", typeof(decimal), "BM0*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top1", typeof(decimal), "BM1*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top2", typeof(decimal), "BM2*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top3", typeof(decimal), "BM3*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top4", typeof(decimal), "BM4*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top5", typeof(decimal), "BM5*Top");
        //oMyData.xTexcommFoyDetail.Columns.Add("Top6", typeof(decimal), "BM6*Top");
        

        List<XRTable> tables = new List<XRTable>();
        tables.AddRange(new XRTable[] {
            /*xtA1, xtA2, xtA3, xtA4, xtGarni, xtBD*/
        });

        foreach (XRTable t in tables)
            foreach (XRTableRow r in t.Rows)
                foreach (XRTableCell cell in r)
                {
                    cell.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2);
                    cell.BeforePrint += new PrintEventHandler(cell_BeforePrint);
                    cell.WordWrap = false;
                }       

    }

    string G(int i)
    {
        return  oMyData.KFCaptions.FindByidx(i).Expl;
    }


    private void HeaderBand_BeforePrint(object sender, PrintEventArgs e)
    {
        DataRowView dv = (DataRowView)HeaderBand.Report.GetCurrentRow();
        
        int GarniAdedi = (int)dv.Row["GarniAdedi"];
        
        string model = dv.Row["Modello"].ToString();

        CreateMDTable();
        CreateDetailTable();
        CreateBDTable(model);
        CreateGarniTable(GarniAdedi,0);
    }

    private void CreateDetailTable()
    {
        string strModelDetay = "";
        //foreach (DataColumn dc in oMyData.xTexcommFoyDetail.Columns)
        //{
        //    string activeColName = dc.ColumnName;
        //    if (activeColName.StartsWith("StackTrace"))
        //    {
        //        if (oMyData.xTexcommFoyDetail.Select("ISNULL(" + activeColName + ",'')<>''").Length > 0)
        //        {
        //            strModelDetay += activeColName + ";";
        //        }
        //    }
        //}

        string[] Fields = strModelDetay.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);

        int mod;
        if (Fields.Length % 4 == 0)
            mod = Fields.Length / 4;
        else
            mod = Fields.Length / 4 + 1;
        int tblIndex = 1;

        for (int i = 0; i < Fields.Length; i++)
        {
            string colName = Fields[i];

            XRTableRow tr = new XRTableRow();
            tr.HeightF = 75;

            XRTableCell tcBaslik = new XRTableCell();
            XRTableCell tcDetay = new XRTableCell();

            tcBaslik.BackColor = System.Drawing.Color.Gainsboro;
            tcBaslik.BorderColor = System.Drawing.Color.White;
            tcBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            tcBaslik.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Bold);
            tcBaslik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            tcBaslik.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
            tcBaslik.Text = colName.Substring(6, colName.Length - 6);
            tcBaslik.WidthF = 306;

            tcDetay.BorderColor = System.Drawing.Color.Gainsboro;
            tcDetay.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom)));
            tcDetay.Font = new System.Drawing.Font("Calibri", 9F);
            tcDetay.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            tcDetay.Padding = new DevExpress.XtraPrinting.PaddingInfo(1,1,1,1);
            tcDetay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello."+colName)});
            tcDetay.WidthF = 400;
            tcDetay.BeforePrint += new PrintEventHandler(cell_BeforePrint2);

            tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });


            if (i % mod == 0)
            {
                tblIndex = i / mod + 1;
            }
            ((XRTable)this.FindControl("tbDetay" + tblIndex.ToString(), false)).Rows.Add(tr);
        }
    }

    private DataTable RemoveUnusedBDCols(DataTable dt)
    {
        string colNames = "";

        for (int i = 0; i < dt.Columns.Count; i++)
        {
            string activeColName = dt.Columns[i].ColumnName;


            if (activeColName.StartsWith("A") && activeColName.Length == 3)
            {
                //Int32 sum = Convert.ToInt32(dt.Compute(string.Format("sum({0})", activeColName), ""));
                //if (sum == 0)
                if (dt.Select("ISNULL(" + activeColName + ",0)<>0").Length == 0)
                {
                    colNames += dt.Columns[i].ColumnName + ";";
                }
                else
                    break;
            }
            else
                colNames += dt.Columns[i].ColumnName + ";";
        }

        for (int i = dt.Columns.Count - 1; i > 0; i--)
        {
            string activeColName = dt.Columns[i].ColumnName;
            if (activeColName.StartsWith("A") && activeColName.Length == 3)
            {
                //Int32 sum = Convert.ToInt32(dt.Compute(string.Format("sum({0})", activeColName), ""));
                //if (sum == 0)
                if (dt.Select("ISNULL(" + activeColName + ",0)<>0").Length == 0)
                {
                    colNames += dt.Columns[i].ColumnName + ";";
                }
                else
                    break;
            }
            else
                colNames += dt.Columns[i].ColumnName + ";";
        }
        foreach (string colName in colNames.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
        {
            dt.Columns.Remove(colName);
        }

        return dt;
    }

    private void CreateMDTable()
    {
        string strModelDetay="";
        //foreach (DataColumn dc in oMyData.xTexcommFoyHeader.Columns)
        //{
        //    string activeColName = dc.ColumnName;
        //    if (activeColName.StartsWith("md"))
        //    {
        //        if (oMyData.xTexcommFoyHeader.Select("ISNULL("+activeColName+",'')<>''").Length>0)
        //        {
        //            strModelDetay += activeColName + ";";
        //        }
        //    }
        //}
        foreach (string colName in strModelDetay.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
        {
            XRTableRow tr= new XRTableRow();
            tr.HeightF = 63.5F;

            XRTableCell tcBaslik = new XRTableCell();
            XRTableCell tcDetay = new XRTableCell();

            tcBaslik.BackColor = System.Drawing.Color.LightGray;
            tcBaslik.BorderColor = System.Drawing.Color.DimGray;
            tcBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
            | DevExpress.XtraPrinting.BorderSide.Right)
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            tcBaslik.BorderWidth = 1;
            tcBaslik.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            tcBaslik.Text = colName.Substring(2, colName.Length - 2); 
            tcBaslik.WidthF = 254.58F;

            tcDetay.BorderColor = System.Drawing.Color.DimGray;
            tcDetay.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
            | DevExpress.XtraPrinting.BorderSide.Right)
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            tcDetay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xTexcommFoyHeader."+colName)});
            tcDetay.WidthF = 1614.54F;

            tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });
            tbModelDetay.Rows.Add(tr);

        }
    }    

    private void CreateBDTable(string model)
    {
        //DataRow[] drs = oMyData.xTexcommFoyDetail.Select("Modello ='" + model + "'");

        //dtDetail = RemoveUnusedBDCols(drs.CopyToDataTable());

        xtBD.BeginInit();

        int cellWidth = 70;
        BDWidth = dtDetail.Columns.Count * cellWidth + 270 + 50;
        
        xtBD.WidthF = BDWidth ;
        xtBD.LocationF = new PointF(tblDetayBaslik.LocationF.X + tblDetayBaslik.WidthF - xtBD.WidthF , xtGarni.LocationF.Y);

        x32.LocationF = new PointF(xtBD.LocationF.X, x31.LocationF.Y);

        xtBD.Rows.Clear();
        
        xtBD.Borders = DevExpress.XtraPrinting.BorderSide.All;
        XRTableRow tr;

        tr = new XRTableRow();
        XRTableCell tc = new XRTableCell();
        tc.Text = "Dagilim";
        tc.WidthF = 270;
        tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 3, 0, 0);
        tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
        tc.BackColor = Color.LightGray;
        tr.Cells.Add(tc);
       
        for (int i = 0; i < dtDetail.Columns.Count+1; i++)
        {
            string caption;           
            
            
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            if (i == dtDetail.Columns.Count)
            {
                tc.Text = "Top.";
                tc.WidthF = 100;
            }
            else 
            {
                DataRow dr = dagilim.Select("Name='" + dtDetail.Columns[i].ColumnName + "'")[0];
                switch (dr["Beden"].ToString())
                {
                    case "S": caption = "S(38)"; break;
                    case "M": caption = "M(40)"; break;
                    case "L": caption = "L(41)"; break;
                    case "XL": caption = "XL(43)"; break;
                    case "XXL": caption = "XXL(45)"; break;
                    case "3XL": caption = "3XL(47)"; break;
                    default: caption = dr["Beden"].ToString(); break;
                }
                
                tc.Text = caption;//dtDetail.Columns[i].ColumnName.Replace("x", "");
            }
            tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
            tc.BackColor = Color.LightGray;
            tr.Cells.Add(tc);
        }
        xtBD.Rows.Add(tr);
        
        for (int i = 0; i < colCaptions.Length; i++)
        {
            tr = new XRTableRow();
            tc = new XRTableCell();
            tc.Text = colCaptions[i];
            if (i > 0)
                tc.BorderColor = Color.LightGray;
            tc.WidthF = 270;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;

            tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
            tr.Cells.Add(tc);

            for (int j = 0; j < dtDetail.Columns.Count+1 ; j++)
            {
                tc = new XRTableCell();
                tc.WidthF = cellWidth;
                tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
                if (i < 1)
                {
                    if (j == dtDetail.Columns.Count)
                    {
                        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
                        tc.BackColor = Color.LemonChiffon;
                        tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
                        tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Top");

                    }
                    else
                    {
                        //tc.Text = DetailBand.Report.GetCurrentColumnValue(dtDetail.Columns[j].ColumnName).ToString();
                        string currentColName = dtDetail.Columns[j].ColumnName;
                        tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello." + currentColName);
                    }
                        
                }
                else
                    tc.BorderColor = Color.LightGray;

                if (j == dtDetail.Columns.Count)
                    tc.WidthF = 100;

                tr.Cells.Add(tc);
            }

            xtBD.Rows.Add(tr);
        }

        xtBD.EndInit();
    }

    private void CreateGarniTable(int GarniAdedi, int ProfiloAdedi)
    {
        xtGarni.BeginInit();
        xtGarni.Rows.Clear();

        int cellWidth = 270;
        float availableSpace = tblDetayBaslik.WidthF - BDWidth;
        if (!(cellWidth * (GarniAdedi + 1 + ProfiloAdedi) <= availableSpace))
        {
            cellWidth = Convert.ToInt16((availableSpace-10) / (GarniAdedi + 1 + ProfiloAdedi));
        }
       
        

        xtGarni.WidthF = cellWidth * (GarniAdedi + 1  + ProfiloAdedi);

        xtGarni.Borders = DevExpress.XtraPrinting.BorderSide.All;
        XRTableRow tr;

        tr = new XRTableRow();
        #region Başlık
        XRTableCell tc = new XRTableCell();
        tc.WidthF = cellWidth;
        tc.Text = "Beden";// Fx("Beden", "Corpo");
        tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
        tc.BackColor = Color.Gainsboro;
        tr.Cells.Add(tc);

        for (int i = 0; i < GarniAdedi; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Text = "Garni" + (i + 1).ToString();
            tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
            tc.BackColor = Color.Gainsboro;
            tr.Cells.Add(tc);
        }


        #endregion
        xtGarni.Rows.Add(tr);
        tr = new XRTableRow();
        #region ProductName
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Font = new Font(this.Font.FontFamily, 8f);
            if (i < 1)
                tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Corpo");
            else
                tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Int" + i.ToString());
            //tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
            tc.Multiline = true;
            tr.Cells.Add(tc);
        }

        #endregion
        xtGarni.Rows.Add(tr);
        tr = new XRTableRow();
        #region MusteriKodlari
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Font = new Font(this.Font.FontFamily, 8f);
            if (i < 1)
                tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Artikel");
            else
                tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Abbinemento" + i.ToString());
            //tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
            tc.Multiline = true;
            tr.Cells.Add(tc);
        }
                
        #endregion
        xtGarni.Rows.Add(tr);


        tr = new XRTableRow();
        #region Scan
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.HeightF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;

            XRPictureBox xpic = new XRPictureBox();
            xpic.Dpi = 254;

            xpic.SizeF = new System.Drawing.SizeF(cellWidth, cellWidth);

            xpic.Borders = DevExpress.XtraPrinting.BorderSide.None;

            xpic.Sizing = DevExpress.XtraPrinting.ImageSizeMode.CenterImage;  // CenterImage;

            xpic.DataBindings.Add(new DevExpress.XtraReports.UI.XRBinding("Image", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Photo" + i.ToString()));
            tc.Controls.Add(xpic);
            tc.BorderColor = Color.LightGray;
            tr.Cells.Add(tc);
        }




        #endregion
        xtGarni.Rows.Add(tr);

        tr = new XRTableRow();
        #region En
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            float fontf = 0.7F;
            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.Text = "En :";
            tr.Cells.Add(tc);

            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.En" + i.ToString(), "{0:n}");
            tr.Cells.Add(tc);

            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.CaptionBM" + i.ToString(), "{0:n}");
            //tc.Text =  "BM :";
            tr.Cells.Add(tc);

            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.BM" + i.ToString(), "{0:n}");
            tr.Cells.Add(tc);

            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size, FontStyle.Bold);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.Text = "En :";
            //tr.Cells.Add(tc);

            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.En" + i.ToString());
            //tr.Cells.Add(tc);

        }
        #endregion
        xtGarni.Rows.Add(tr);

        //tr = new XRTableRow();
        //#region BirimMetraj
        //for (int i = 0; i < GarniAdedi + 1; i++)
        //{
        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
        //    tc.Font = new Font(this.Font.FontFamily, 8f);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.BM" + i.ToString(), "{0:n}");
        //    tr.Cells.Add(tc);
        //}

        //#endregion
        //xtGarni.Rows.Add(tr);
        tr = new XRTableRow();
        #region GenelToplam
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Font = new Font(this.Font.FontFamily, 8f);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Top" + i.ToString(), "{0:n}");
            tr.Cells.Add(tc);
        }

        #endregion

        xtGarni.Rows.Add(tr);

        tr = new XRTableRow();
        #region GarniTers
        for (int i = 0; i < GarniAdedi + 1; i++)
        {

            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
            tc.Font = new Font(this.Font.FontFamily, 8f);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            if (i == 1 || i == 2)
            {
                tc.DataBindings.Add("Text", null, "xTexcommFoyHeader.FK_xTexcommFoyDetail_xTexcommFoyHeader_Modello.Garni" + i.ToString() + "Ters", "{0:n}");
            }
            tr.Cells.Add(tc);

        }
        #endregion
        xtGarni.Rows.Add(tr);

        

        xtGarni.EndInit();
    }
}
